package com.zhny.aiot.rainfall.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;

public class RainfallStoreEntry extends StoreEntity {
    @PropertyValue(alias = "当天降雨量",description = "从凌晨零点到现在的降雨量",unit = "mm",icon=IconConstract.Rain,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double rain;

    @PropertyValue(alias = "昨日降雨量",description = "昨日24小时内的降雨量",unit = "mm",icon=IconConstract.Rain,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double yesterdayRainfall;

    @PropertyValue(alias = "总降雨量",description = "传感器上电后的总降雨量",unit = "mm",icon=IconConstract.Rain,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double totalRainfall;

    @PropertyValue(alias = "小时降雨量",description = "平均每小时降雨量",unit = "mm",icon=IconConstract.Rain,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double hourRainfall;
    @PropertyValue(alias = "上小时降雨量",description = "上小时降雨量",unit = "mm",icon=IconConstract.Rain,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double lastHourRainfall;
    public double getRain() {
        return rain;
    }

    public void setRain(double rain) {
        this.rain = rain;
    }

    public double getYesterdayRainfall() {
        return yesterdayRainfall;
    }

    public void setYesterdayRainfall(double yesterdayRainfall) {
        this.yesterdayRainfall=yesterdayRainfall;
    }

    public double getTotalRainfall() {
        return totalRainfall;
    }

    public void setTotalRainfall(double totalRainfall) {
        this.totalRainfall=totalRainfall;
    }

    public double getHourRainfall() {
        return hourRainfall;
    }

    public void setHourRainfall(double hourRainfall) {
        this.hourRainfall=hourRainfall;
    }

    public double getLastHourRainfall() {
        return lastHourRainfall;
    }

    public void setLastHourRainfall(double lastHourRainfall) {
        this.lastHourRainfall=lastHourRainfall;
    }
}
